package com.dsg.entity.account;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 油公司日結帳
 * </p>
 *
 * @author system
 * @since 2020-07-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("dsg_account_cash")
@ApiModel(value = "DsgAccountCash对象", description = "油公司日結帳")
public class DsgAccountCash implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("OID")
    private String oid;

    @ApiModelProperty(value = "油公司")
    @TableField("OIL_COM")
    private String oilCom;

    @ApiModelProperty(value = "銀行名稱")
    @TableField("BANK_NAME")
    private String bankName;

    @ApiModelProperty(value = "銀行戶口")
    @TableField("ACCOUNT_NO")
    private String accountNo;

    @ApiModelProperty(value = "總收入")
    @TableField("INCOME_SUM")
    private BigDecimal incomeSum;

    @ApiModelProperty(value = "總支出")
    @TableField("EXPEND_SUM")
    private BigDecimal expendSum;

    @ApiModelProperty(value = "兌現時間")
    @TableField("CASH_TIME")
    private Date cashTime;

    @ApiModelProperty(value = "對賬狀態")
    @TableField("REC_STATUS")
    private Integer recStatus;

    @ApiModelProperty(value = "支票號")
    @TableField("CHECK_NO")
    private String checkNo;

    @ApiModelProperty(value = "備註")
    @TableField("REMARKS")
    private String remarks;

    /**
     * 企業編號
     */
    @TableField(value = "ENT_CODE")
    @ApiModelProperty(value = "企業編號", name = "entCode")
    private String entCode;

    @ApiModelProperty(value = "创建人")
    @TableField("CREATER")
    private String creater;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATE_TIME")
    private Date createTime;

    @ApiModelProperty(value = "更新人")
    @TableField("UPDATER")
    private String updater;

    @ApiModelProperty(value = "更新时间")
    @TableField("UPDATE_TIME")
    private Date updateTime;

    /************************枚舉**********************/
    public enum AppStatus {
        noReconciliation(1), reconciled(2), ArReconciliation(3);
        Integer code;

        AppStatus(int code) {
            this.code = code;
        }

        public Integer getCode() {
            return code;
        }
    }

}
